Ext.define('TS.view.dilema.CounterpointForm', {
    extend: 'TS.lib.Form',
    alias : 'widget.dilemapointcounterpointform',
    //title : 'Ocena',
	url:URL.dilema.form.dilemapointcounterpoint,
	items:[
		{xtype:'hidden',name:'dilema_point_counterpoint_id'},
		{xtype:'combo',name:'counterpoint_id',fieldLabel:'Kontrargument',store:Ext.clone(Dict.argument)},
		{xtype:'hidden',name:'dilema_point_id'}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			//Dict.bible.load();
			Util.store('DilemaPointCounterpoint').load();
		}
	},{
		text:'Nowe',
		handler:Util.f.clear,
		callback:function(){
			Util.s.load('DilemaPointCounterpoint');
			Util.fldVal('dilemapointcounterpoint->#dilema_point_id','dilema_point->id');
		}
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.dilema.del.dilemapointcounterpoint
		}
	}]
});